package com.camelot.ccr.system.persistence;
// default package

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;


/**
 * MatchTeam entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name="t_match_team")

public class MatchTeam  implements java.io.Serializable {


    /**
	 * 
	 */
	private static final long serialVersionUID = 6392600086065294876L;
	// Fields    

	 @Id 
	 @GeneratedValue(generator="generator")
	 @GenericGenerator(name="generator", strategy="uuid.hex")
     @Column(name="id", unique=true, nullable=false, length=50)
     private String id;
     
     @OneToOne
     @JoinColumn(name="match_id")
     private MatchType match;
     
     @OneToOne
     @JoinColumn(name="team_id")
     private Team team;


    // Constructors

    /** default constructor */
    public MatchTeam() {
    }

    

   

    public String getId() {
        return this.id;
    }
    
    public void setId(String id) {
        this.id = id;
    }




	/**  
	 * 获取match  
	 * @return match match  
	 */
	public MatchType getMatch() {
		return match;
	}




	/**  
	 * 设置match  
	 * @param match match  
	 */
	public void setMatch(MatchType match) {
		this.match = match;
	}




	/**  
	 * 获取team  
	 * @return team team  
	 */
	public Team getTeam() {
		return team;
	}


	/**  
	 * 设置team  
	 * @param team team  
	 */
	public void setTeam(Team team) {
		this.team = team;
	}
    
    

}